﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class Betting
    {
        private IDataRepository _dataObject;
        public Betting(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void CreateBetting()
        {
            _dataObject.CreateBetting(this);
        }
        public void UpdateBetting()
        {
            _dataObject.UpdateBetting(this);
        }
        public void UpdateBettingForMatch()
        {
            _dataObject.UpdateBettingForMatch(this);
        }
        public void UpdateBettingForDraw()
        {
            _dataObject.UpdateBettingForDraw(this);
        }
        public void UpdateBettingForTie()
        {
            _dataObject.UpdateBettingForTie(this);
        }
        public int StopAllBetting(int? AdminId)
        {
            return _dataObject.StopAllBetting(AdminId);
        }

        public List<EditAdminBetResult> EditAdminBetting(int MatchId, int BetTypeId, int AdminId)
        {
            return _dataObject.EditAdminBetting(MatchId, BetTypeId, AdminId);
        }
        public List<Betting> GetBettingStatus(int BettingId)
        {
            return _dataObject.GetBettingStatus(BettingId);
        }
    }
}
